home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / shoot_em_in.swf / scripts / DefineSprite_136 / frame_103 / DoAction.as
Text File  |  2007-01-15  |  384b  |  7 lines

  1. lWindRotation = _parent._windAngle / 180 * 3.141592653589793;
  2. lWindForce = _parent._windMax / 1000;
  3. vXWind = - lWindForce * Math.sin(- lWindRotation);
  4. vZWind = lWindForce * Math.cos(- lWindRotation);
  5. _parent.mcWind.mcArrow._rotation = lWindRotation * 180 / 3.141592653589793;
  6. _parent.mcWind.mcArrow.gotoAndStop(int(lWindForce * 1000 * _parent.mcWind.mcArrow._totalframes / 9));
  7.